package com.shop.cereshop.commons.domain.agent;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 代金券交易流水表实体类
 */
@Data
@Table(name = "cere_agent_voucher_transaction")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CereAgentVoucherTransaction {

    /**
     * 代金卷id
     */
    @ApiModelProperty(value = "代金卷id", required = true)
    private Long voucherTransactionId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long agentUserId;


    /**
     * 支付前余额
     */
    @ApiModelProperty(value = "支付前余额")
    private BigDecimal balanceBefore;

    /**
     * 支付后余额
     */
    @ApiModelProperty(value = "支付后余额")
    private BigDecimal balanceAfter;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    /**
     * 交易描述
     */
    @ApiModelProperty(value = "交易描述")
    private String description;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

}
